//host域名
var reqHost = "http://127.0.0.1:8080";

//获取查询参数
function getQueryParms(name) {
    var reg = new RegExp('(^|&)' + name + '=([^&]*)(&|$)', 'i');
    var r = window.location.search.substr(1).match(reg);
    if (r != null) {
        return unescape(r[2]);
    }
    return null;
}
//获取路径
function getPathUrl() {

    var pathurl = window.location.pathname;
    var index = pathurl.substr(1);
    return index;
}
